// 统一管理项目用户相关的接口
import service from '@/utils/request'
import type { loginForm, loginResponseData, userResponseData } from './type'
// 管理接口
enum API {
  LOGIN_URL = 'http://114.115.179.162:8022/prod-api/admin/acl/index/login',
  USERINFO_URL = "/user/info"
}

// 登录
export const reqLogin = (data: loginForm) => service.post<any, loginResponseData>(API.LOGIN_URL, data)

// 获取用户信息
export const reqUserInfo = () => service.get<any, userResponseData>(API.USERINFO_URL)